# App level state file
# List of items that PAPI requires (across all ENV)
include:
  - webserver
  - php.composer
  - memcached
  - dos2unix
  - clamav
  {% if 'local' not in salt['grains.get']('app', {}) %}- logentries{% endif %}

# Custom sysctl config for PAPI
Apply net.netfilter.nf_conntrack_max for PAPI:
  sysctl.present:
    - name: net.netfilter.nf_conntrack_max
    - value: 131072

Apply net.netfilter.nf_conntrack_generic_timeout for PAPI:
  sysctl.present:
    - name: net.netfilter.nf_conntrack_generic_timeout
    - value: 60

Apply net.netfilter.nf_conntrack_tcp_timeout_established for PAPI:
  sysctl.present:
    - name: net.netfilter.nf_conntrack_tcp_timeout_established
    - value: 3600

Apply net.netfilter.nf_conntrack_tcp_timeout_unacknowledged for PAPI:
  sysctl.present:
    - name: net.netfilter.nf_conntrack_tcp_timeout_unacknowledged
    - value: 30

